CREATE TABLE [dbo].[tb_CuentasBancarias]
(
[idCuentaBancaria] [int] NOT NULL IDENTITY(1, 1),
[SucursalBancaria] [int] NOT NULL,
[NumeroDeCuenta] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_CuentasBancarias] ADD CONSTRAINT [PK_tb_CuentasBancarias] PRIMARY KEY NONCLUSTERED  ([idCuentaBancaria]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_CuentasBancarias] WITH NOCHECK ADD CONSTRAINT [FK_tb_CuentasBancarias_tb_SucursalesBancarias] FOREIGN KEY ([SucursalBancaria]) REFERENCES [dbo].[tb_SucursalesBancarias] ([idSucursalBancaria])
GO
